package com.googlecode.swarmoids.game;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import com.googlecode.saga.GameEngine;
import com.googlecode.saga.GameEngineActivity;


/**
 * 
 */
public class SwarmoidsGame extends GameEngine
{
    private final static int DESIRED_RESOLUTION_WIDTH = 100;

    private final static int DESIRED_RESOLUTION_HEIGHT = 100;

    private final static int UPDATES_PER_SECOND = 20;

    /**
     * @param width
     * @param height
     * @param ups
     */
    public SwarmoidsGame(GameEngineActivity activity)
    {
        super(DESIRED_RESOLUTION_WIDTH, DESIRED_RESOLUTION_HEIGHT, UPDATES_PER_SECOND, activity);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onUpdate()
    {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onDraw(Canvas canvas)
    {
        final Rect r = new Rect(25, 25, 75, 75);
        final Paint p = new Paint();
        p.setColor(Color.rgb(200, 100, 200));
        canvas.drawRect(r, p);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onPause()
    {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onResume()
    {
    }

}
